﻿<Window x:Class="WITD.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Title="Work Item Type Synchronizer"
        Activated="Window_Activated"
        BorderThickness="2"
        d:DesignHeight="771"
        d:DesignWidth="944"
        Loaded="Window_Loaded"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterScreen"
        WindowStyle="ToolWindow"
        mc:Ignorable="d">
    <Grid Width="879"
          Height="711"
          Background="#40000000">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="661*" />
            <ColumnDefinition Width="19*" />
            <ColumnDefinition Width="162*" />
            <ColumnDefinition Width="37*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="42*" />
            <RowDefinition Height="606*" />
        </Grid.RowDefinitions>
        <Rectangle Name="rectangle2"
                   Grid.RowSpan="2"
                   Grid.ColumnSpan="4"
                   Width="215"
                   Height="436"
                   Margin="652,27,0,0"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Stroke="Black" />
        <GroupBox Name="gbIncludeQueries"
                  Grid.Row="1"
                  Grid.ColumnSpan="4"
                  Width="217"
                  Height="72"
                  Margin="650,45,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  BorderThickness="0"
                  Header="" />
        <Rectangle Name="rectangle3"
                   Grid.Row="1"
                   Grid.ColumnSpan="4"
                   Width="862"
                   Height="138"
                   Margin="6,519,0,0"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Stroke="Black">
            <Rectangle.Fill>
                <SolidColorBrush />
            </Rectangle.Fill>
        </Rectangle>
        <Button Name="btnSourceCollection"
                Width="312"
                Height="23"
                Margin="6,13,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnSourceCollection_Click"
                Content="Select Source Collection"
                ToolTip="Click to select the source project collection."
                ToolTipService.ShowDuration="60000" />
        <ComboBox Name="cob_projects"
                  Grid.Row="1"
                  Width="312"
                  Height="23"
                  Margin="6,62,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Background="White"
                  Foreground="Black"
                  SelectionChanged="cob_projects_SelectionChanged"
                  ToolTip="Select the source project from available projets in the source collecton"
                  ToolTipService.ShowDuration="60000" />
        <ListBox Name="cob_wittype"
                 Grid.Row="1"
                 Height="255"
                 Margin="6,162,343,0"
                 VerticalAlignment="Top"
                 DataContext="{Binding}"
                 ToolTip="Displays the available work item types for the currently selected source project. Checked entries are exported to target projects."
                 ToolTipService.ShowDuration="60000">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <CheckBox Name="chkChecked"
                                  Checked="Chk_Checked"
                                  Content="{Binding Item.Name}"
                                  IsChecked="{Binding IsChecked,
                                                      Mode=TwoWay}"
                                  ToolTip="Check each Work Item Type Definition to include in the export/import."
                                  ToolTipService.ShowDuration="60000"
                                  Unchecked="Chk_Unchecked" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Label Name="label1"
               Grid.Row="1"
               Width="262"
               Height="23"
               Margin="3,40,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Select Source Project" />
        <Label Name="label2"
               Grid.Row="1"
               Width="131"
               Height="23"
               Margin="6,140,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top">
            Select Work Item Types
        </Label>
        <Button Name="btnExport"
                Grid.Row="1"
                Grid.ColumnSpan="4"
                Width="215"
                Height="23"
                Margin="653,424,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnExport_Click"
                Content="Execute selected options"
                FontWeight="Bold"
                Foreground="#FFF70000"
                ToolTip="Validates and optionally exports the selected work item types and optionally, the work item queries, to each selected target project."
                ToolTipService.ShowDuration="60000" />
        <Button Name="btnSelectAllNone"
                Grid.Row="1"
                Width="125"
                Height="23"
                Margin="193,140,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnSelectAllNone_Click"
                Content="Select None (WITDs)"
                ToolTip="Selects all or none of the work item types for the selected source project."
                ToolTipService.ShowDuration="60000" />
        <Button Name="btnTarget"
                Width="312"
                Height="23"
                Margin="0,13,20,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="btnTargetCollection_Click"
                Content="Select Target Collection"
                ToolTip="Click to select the target project collection."
                ToolTipService.ShowDuration="60000" />
        <ListBox Name="cboTargetProjects"
                 Grid.Row="1"
                 Height="358"
                 Margin="329,62,20,0"
                 VerticalAlignment="Top"
                 ToolTip="Displays the available target projects to receive the work item types and optionally, the work item queries, categories, iterations, and work items."
                 ToolTipService.ShowDuration="60000">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <CheckBox Name="chkTargetsChecked"
                                  Checked="Chk_TargetsChecked"
                                  Content="{Binding Item.Name}"
                                  IsChecked="{Binding IsChecked,
                                                      Mode=TwoWay}"
                                  ToolTip="Select each team project you want to import the selected work item type definitions to"
                                  ToolTipService.ShowDuration="60000"
                                  Unchecked="Chk_TargetsUnchecked" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Label Name="label3"
               Grid.Row="1"
               Width="136"
               Height="23"
               Margin="329,41,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Select Target Projects"
               IsEnabled="True" />
        <Label Name="label4"
               Grid.Row="1"
               Width="87"
               Margin="12,570,0,70"
               HorizontalAlignment="Left"
               Content="Current Project" />
        <TextBox Name="txtCurrentWIT"
                 Grid.Row="1"
                 Grid.ColumnSpan="4"
                 Height="23"
                 Margin="107,599,28,0"
                 VerticalAlignment="Top"
                 IsReadOnly="True"
                 ToolTip="Displays the work item type currently being validated and imported."
                 ToolTipService.ShowDuration="60000" />
        <Label Name="lblCurrentWIT"
               Grid.Row="1"
               Width="87"
               Height="28"
               Margin="12,597,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Current WIT"
               ToolTipService.ShowDuration="60000" />
        <Button Name="btnSelectAllProjects"
                Grid.Row="1"
                Width="171"
                Height="23"
                Margin="0,40,20,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="btnSelectAllProjects_Click"
                Content="Select All Projects as Targets"
                ToolTip="Click to select all or none of the target projects."
                ToolTipService.ShowDuration="60000" />
        <TextBox Name="txtCurrentProject"
                 Grid.Row="1"
                 Grid.ColumnSpan="4"
                 Height="23"
                 Margin="107,572,28,0"
                 VerticalAlignment="Top"
                 IsReadOnly="True"
                 ToolTip="Displays the current target project during the validation and import process."
                 ToolTipService.ShowDuration="60000" />
        <Button Name="btnQuit"
                Grid.Row="1"
                Grid.Column="2"
                Grid.ColumnSpan="2"
                Width="80"
                Height="23"
                Margin="0,629,28,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="btnQuit_Click"
                Content="Quit"
                ToolTip="Click to exit the application."
                ToolTipService.ShowDuration="60000"
                Visibility="Visible" />
        <Label Name="label5"
               Grid.Row="1"
               Height="28"
               Margin="12,544,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Source Project" />
        <TextBox Name="txtSourceProject"
                 Grid.Row="1"
                 Grid.ColumnSpan="4"
                 Height="23"
                 Margin="107,544,28,0"
                 VerticalAlignment="Top"
                 IsReadOnly="True"
                 ToolTip="Displays the current source project."
                 ToolTipService.ShowDuration="60000" />
        <CheckBox Name="chklLog"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Width="190"
                  Height="16"
                  Margin="0,401,0,248"
                  HorizontalAlignment="Left"
                  Content="Log results"
                  IsChecked="True"
                  ToolTip="Creates a log file of all actions and results each time actions are executed."
                  ToolTipService.ShowDuration="60000" />
        <Label Name="lblStatus"
               Grid.Row="1"
               Width="75"
               Height="28"
               Margin="17,625,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Progress"
               Visibility="Visible" />
        <ProgressBar Name="ProgressImport"
                     Grid.Row="1"
                     Grid.ColumnSpan="3"
                     Width="658"
                     Height="20"
                     Margin="107,631,0,0"
                     HorizontalAlignment="Left"
                     VerticalAlignment="Top"
                     Maximum="1000"
                     Minimum="0"
                     Visibility="Visible">
            <ProgressBar.Template>
                <ControlTemplate>
                    <Grid Background="{TemplateBinding Background}">
                        <Rectangle Name="PART_Track" />
                        <Rectangle Name="PART_Indicator"
                                   HorizontalAlignment="Left"
                                   Fill="{TemplateBinding Foreground}" />
                    </Grid>
                </ControlTemplate>
            </ProgressBar.Template>
        </ProgressBar>
        <TextBox Name="lblSourceCollection"
                 Grid.Row="1"
                 Width="312"
                 Height="28"
                 Margin="6,0,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 AllowDrop="False"
                 Background="BlanchedAlmond"
                 Focusable="False"
                 IsReadOnly="True"
                 IsTabStop="False"
                 IsUndoEnabled="False"
                 Text=""
                 ToolTip="The uri of the source collection"
                 ToolTipService.ShowDuration="60000" />
        <TextBox Name="lblTargetCollection"
                 Grid.Row="1"
                 Width="312"
                 Height="28"
                 Margin="329,0,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 AllowDrop="False"
                 Background="BlanchedAlmond"
                 Focusable="False"
                 Foreground="#FF190000"
                 IsReadOnly="True"
                 IsTabStop="False"
                 IsUndoEnabled="False"
                 Text=""
                 ToolTip="The uri of the target collection"
                 ToolTipService.ShowDuration="60000" />
        <CheckBox Name="chkValidateOnly"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Width="190"
                  Height="16"
                  Margin="0,384,28,265"
                  Content="Validate WITs Only"
                  IsChecked="True"
                  ToolTip="Validates the work item types without making any changes to target projects. Nothing gets copied or imported."
                  ToolTipService.ShowDuration="60000" />
        <CheckBox Name="chkIncludeCategories"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Width="190"
                  Height="16"
                  Margin="0,333,28,316"
                  Content="Include categories"
                  ToolTip="Imports the categories to the target project before work item types."
                  ToolTipService.ShowDuration="60000" />
        <CheckBox Name="chkIncludeQueries"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Height="16"
                  Margin="0,59,30,0"
                  VerticalAlignment="Top"
                  Click="chkIncludeQueries_Click"
                  Content="Include queries"
                  IsChecked="true"
                  ToolTip="Check to include the work item queries in the synchronization process. Imports all queries recursively."
                  ToolTipService.ShowDuration="60000" />
        <CheckBox Name="chkIncludeLinks"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Width="190"
                  Height="16"
                  Margin="0,350,28,299"
                  Content="Include link types"
                  ToolTip="When exporting across collections, exports the link types to the target collection first."
                  ToolTipService.ShowDuration="60000" />
        <CheckBox Name="chkIncludeIterations"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Height="16"
                  Margin="0,132,30,458"
                  Click="chkIncludeIterations_Click"
                  Content="Include iterations"
                  IsChecked="true"
                  ToolTip="Check to add the iterations from the source project to target projects that do not already have them." />
        <Label Name="label6"
               Grid.ColumnSpan="4"
               Width="215"
               Height="28"
               Margin="652,3,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Center"
               Content="Options"
               FontFamily="Verdana"
               FontSize="12"
               FontStretch="UltraExpanded"
               FontWeight="Bold"
               IsEnabled="True" />
        <Button Name="btnSetBackupFolder"
                Grid.Row="1"
                Width="28"
                Height="23"
                Margin="613,448,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                VerticalContentAlignment="Top"
                Click="btnSetBackupFolder_Click"
                Padding="0"
                ToolTip="Set the folder location where backups of global lists, categories, and link types will be saved. This will help restore a Team Foundation Server to its prior state if it gets corrupted.">
            <StackPanel Orientation="Vertical">
                <Image Grid.Row="1"
                       Width="28"
                       Height="20"
                       Margin="0,0,0,0"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Top"
                       Source="Resources/Images/Folderopen.ico" />
            </StackPanel>
        </Button>
        <TextBox Name="txtBackupFolder"
                 Grid.Row="1"
                 Width="208"
                 Height="23"
                 Margin="404,447,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 IsReadOnly="True"
                 ToolTip="The selected folder to backup global list files. Stored in the app.config file." />
        <Label Name="label7"
               Grid.Row="1"
               Width="87"
               Height="22"
               Margin="0,519,566,0"
               HorizontalAlignment="Right"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center"
               Content="Status"
               FontFamily="Verdana"
               FontSize="12"
               FontWeight="Bold"
               Padding="0" />
        <GroupBox Name="gbGlobalList"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="2"
                  Width="148"
                  Height="25"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  BorderThickness="0"
                  Header="" />
        <CheckBox Name="global"
                  Grid.RowSpan="2"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Height="16"
                  Margin="0,34,30,661"
                  Click="global_Click"
                  IsChecked="true"
                  ToolTip="Check to include the global lists in the work item type definition and to copy the global list from the source collection to the target collection. Ensure all lists that have TFS accounts are present in the target projects, such as Builders."
                  ToolTipService.ShowDuration="60000">
            Include Global List
        </CheckBox>
        <Grid Grid.Row="1"
              Grid.Column="1"
              Grid.ColumnSpan="3"
              Margin="6,0,12,564">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="43*" />
                <ColumnDefinition Width="72*" />
                <ColumnDefinition Width="20*" />
            </Grid.ColumnDefinitions>
            <RadioButton Name="rbOverwriteAllGlobalLists"
                         Grid.ColumnSpan="3"
                         Width="180"
                         Height="16"
                         Margin="1,4,0,81"
                         HorizontalAlignment="Left"
                         Content="Overwrite (target = source)"
                         IsChecked="true"
                         ToolTip="Imports the global list from the source collection into the target collection. The target collection global list is saved to a file first." />
            <RadioButton Name="rbAddMissingGlobalLists"
                         Grid.ColumnSpan="3"
                         Width="180"
                         Height="16"
                         Margin="1,21,0,64"
                         HorizontalAlignment="Left"
                         Content="Add missing only"
                         ToolTip="Adds all missing lists and list items from the source collection to the target collection. The target collection global list is saved to a file first." />
            <RadioButton Name="rbAddToWITDOnly"
                         Grid.ColumnSpan="3"
                         Width="180"
                         Height="16"
                         Margin="1,39,0,46"
                         HorizontalAlignment="Left"
                         Content="Add to WITD only"
                         ToolTip="Adds all missing lists and list items from the source collection to the target collection. The target collection global list is saved to a file first." />
        </Grid>
        <Grid Grid.Row="1"
              Grid.ColumnSpan="4"
              Height="79"
              Margin="657,51,12,476">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="14*" />
                <ColumnDefinition Width="16*" />
                <ColumnDefinition Width="14*" />
                <ColumnDefinition Width="18*" />
                <ColumnDefinition Width="95*" />
                <ColumnDefinition Width="34*" />
            </Grid.ColumnDefinitions>
            <RadioButton Name="rbSkipQuery"
                         Grid.ColumnSpan="6"
                         Width="179"
                         Height="16"
                         Margin="11,9,0,0"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Content="Skip on duplicate query"
                         ToolTip="Copies only those queries from the source that do not already exist in the target project." />
            <RadioButton Name="rbRenameNewQuery"
                         Grid.ColumnSpan="6"
                         Width="182"
                         Height="16"
                         Margin="11,26,0,0"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Content="Rename new on duplicate query"
                         ToolTip="Copies all queries from the source project to all target projects, but renames the newly copied query if query with the same name already exists in the target project." />
            <RadioButton Name="rbRenameOldQuery"
                         Grid.ColumnSpan="6"
                         Width="179"
                         Height="16"
                         Margin="11,43,0,0"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Content="Rename old on duplicate query"
                         ToolTip="Copies all queries from the source project to all target projects, but renames existing queries when encountering a duplicate query." />
            <RadioButton Name="rbOverwriteQuery"
                         Grid.ColumnSpan="6"
                         Width="179"
                         Height="16"
                         Margin="11,-8,0,0"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Content="Overwrite duplicate query"
                         IsChecked="true"
                         ToolTip="Copies all work item queries from the source project to all target projects, overwriting any that have the same name." />
            <CheckBox Name="chkRemoveQueries"
                      Grid.ColumnSpan="6"
                      Width="198"
                      Height="16"
                      Margin="12,62,0,0"
                      HorizontalAlignment="Left"
                      VerticalAlignment="Top"
                      Content="Remove queries not updated"
                      ToolTip="Check to remove queries from target projects that do not exist in the source project. Not performed when Skip on duplicates is selected." />
        </Grid>
        <GroupBox Name="gbIncludeIterations"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Margin="8,143,12,415"
                  BorderThickness="0"
                  Header="" />
        <Grid Grid.Row="1"
              Grid.Column="1"
              Grid.ColumnSpan="3"
              Height="50"
              Margin="2,151,12,405">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="22*" />
                <ColumnDefinition Width="126*" />
                <ColumnDefinition Width="4*" />
                <ColumnDefinition Width="9*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="28*" />
                <RowDefinition Height="4*" />
                <RowDefinition Height="13*" />
                <RowDefinition Height="5*" />
            </Grid.RowDefinitions>
            <RadioButton Name="rbOverwriteIterations"
                         Grid.ColumnSpan="4"
                         Width="179"
                         Height="16"
                         Margin="5,0,0,12"
                         HorizontalAlignment="Left"
                         Content="Overwrite (target = source)"
                         IsChecked="true"
                         ToolTip="Removes iterations from target projects not in the source project, and adds all iterations from source to target projects." />
            <RadioButton Name="rbAddMissingIterations"
                         Grid.RowSpan="3"
                         Grid.ColumnSpan="4"
                         Width="179"
                         Height="16"
                         Margin="5,17,0,12"
                         HorizontalAlignment="Left"
                         Content="Add missing only"
                         ToolTip="Adds all iterations from the source project to all target projects if not already present. Existing iterations in target projects remain." />
        </Grid>
        <CheckBox Name="chkIncludeWITDs"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Width="190"
                  Height="16"
                  Margin="0,218,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Click="chkWITOptions_Click"
                  Content="Work item type options"
                  IsChecked="true"
                  ToolTip="Check to include work item type definitions in the synchronization." />
        <GroupBox Name="gbWITs"
                  Grid.Row="1"
                  Grid.ColumnSpan="4"
                  Width="211"
                  Height="111"
                  Margin="657,221,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  BorderThickness="0"
                  Header="">
            <Grid Width="206" Height="98">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="39*" />
                    <ColumnDefinition Width="16*" />
                    <ColumnDefinition Width="127*" />
                    <ColumnDefinition Width="24*" />
                </Grid.ColumnDefinitions>
                <RadioButton Name="rbOverwriteWIT"
                             Grid.ColumnSpan="4"
                             Width="180"
                             Height="16"
                             Margin="6,0,0,0"
                             HorizontalAlignment="Left"
                             VerticalAlignment="Top"
                             Content="Overwrite on duplicate WIT"
                             IsChecked="true"
                             ToolTip="Overwrites work item type definitions if named the same as the incoming work item type definition." />
                <RadioButton Name="rbSkipWIT"
                             Grid.ColumnSpan="4"
                             Width="179"
                             Height="16"
                             Margin="6,17,0,0"
                             HorizontalAlignment="Left"
                             VerticalAlignment="Top"
                             Content="Skip on duplicate WIT"
                             ToolTip="Skips work item types when one with the same name already exists oin the target project. Copies all the rest that were selected." />
                <RadioButton Name="rbRenameNewWIT"
                             Grid.ColumnSpan="4"
                             Width="181"
                             Height="16"
                             Margin="6,34,0,0"
                             HorizontalAlignment="Left"
                             VerticalAlignment="Top"
                             Content="Rename new on duplicate WIT"
                             ToolTip="Copies all work item types from the source project to all target projects, but renames the newly copied  work item type if one with the same name already exists in the target project." />
                <RadioButton Name="rbRenameOldWIT"
                             Grid.ColumnSpan="4"
                             Width="178"
                             Height="16"
                             Margin="6,51,0,0"
                             HorizontalAlignment="Left"
                             VerticalAlignment="Top"
                             Content="Rename old on duplicate WIT"
                             ToolTip="Copies all work item types from the source project to all target projects, but renames existing work item types when encountering a duplicate work item type." />
                <CheckBox Name="chkRemoveWITDs"
                          Grid.ColumnSpan="4"
                          Width="181"
                          Height="16"
                          Margin="5,68,0,0"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          Content="Remove WITDs not updated"
                          ToolTip="Attempts to destroy WITDs that were not copied and do not exist in the source project. Allowed only when ALL WITDs are selected for copy. If Include categories is not selected, any WITDs that are in categories cannot be destroyed, only overwritten."
                          ToolTipService.ShowDuration="60000" />
            </Grid>
        </GroupBox>
        <CheckBox Name="chkCopyWorkItems"
                  Grid.Row="1"
                  Grid.Column="1"
                  Grid.ColumnSpan="3"
                  Width="190"
                  Height="16"
                  Margin="0,366,0,283"
                  HorizontalAlignment="Left"
                  Content="Copy work items"
                  ToolTip="If there is only one target project selected, this will copy all the work items that are of the same type as was selected in the source project." />
        <Button Name="btnCancel"
                Grid.Row="1"
                Grid.Column="2"
                Grid.ColumnSpan="2"
                Width="80"
                Height="23"
                Margin="0,629,28,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="btnCancel_Click"
                Content="Cancel"
                ToolTipService.ShowDuration="60000"
                Visibility="Visible" />
        <Button Name="btnCategory"
                Grid.Row="1"
                Width="312"
                Height="23"
                Margin="6,470,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnCategory_Click"
                Content="Manage source project categories &amp; WITDs"
                ToolTip="Add and remove categories, change default work item types, add to and remove work item types from categories for the source project." />
        <Label Name="lblStatusText"
               Grid.Row="1"
               Grid.ColumnSpan="4"
               Width="744"
               Height="28"
               Margin="107,519,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="" />
        <Button Name="btnManageWorkItems"
                Grid.Row="1"
                Width="312"
                Height="23"
                Margin="6,493,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnManageWorkItems_Click"
                Content="Manage source project work items"
                ToolTip="Manage source project work item types and destroy work items" />
        <Button Name="btnViewLogs"
                Grid.Row="1"
                Grid.ColumnSpan="4"
                Width="216"
                Height="23"
                Margin="653,493,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnViewLogs_Click"
                Content="View log files"
                ToolTip="Click to select a log file to view." />
        <TextBox Name="lblSourceProcesstemplate"
                 Grid.Row="1"
                 Width="312"
                 Height="45"
                 Margin="6,89,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 AllowDrop="False"
                 BorderThickness="0"
                 Focusable="True"
                 FontSize="12"
                 IsHitTestVisible="True"
                 IsReadOnly="True"
                 IsTabStop="False"
                 IsUndoEnabled="False"
                 TextWrapping="Wrap"
                 ToolTip="The process template used to create this project.">
            <TextBox.Background>
                <SolidColorBrush />
            </TextBox.Background>
        </TextBox>
        <TextBox Name="lblCollectionsWarning"
                 Grid.Row="1"
                 Width="312"
                 Height="46"
                 Margin="329,470,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 HorizontalContentAlignment="Center"
                 VerticalContentAlignment="Center"
                 AllowDrop="False"
                 FontSize="12"
                 FontWeight="Bold"
                 Foreground="Red"
                 IsHitTestVisible="False"
                 IsTabStop="False"
                 IsUndoEnabled="False"
                 Text="Warning! Source and target collections are different!"
                 TextWrapping="Wrap"
                 VerticalScrollBarVisibility="Auto"
                 Visibility="Visible">
            <TextBox.Background>
                <SolidColorBrush />
            </TextBox.Background>
        </TextBox>
        <Label Name="label8"
               Grid.Row="1"
               Width="83"
               Margin="326,447,0,195"
               HorizontalAlignment="Left"
               VerticalContentAlignment="Center"
               Content="Backup Folder:" />
        <Label Name="lblSelectedTargetCount"
               Grid.Row="1"
               Width="315"
               Height="28"
               Margin="326,420,0,217"
               HorizontalAlignment="Left"
               VerticalAlignment="Center"
               Content="Selected target project count: " />
        <Label Name="lblSelectedWITDCount"
               Grid.Row="1"
               Width="262"
               Height="28"
               Margin="3,420,0,217"
               HorizontalAlignment="Left"
               VerticalAlignment="Center"
               Content="Selected WITD count: " />
        <Button Name="btnLinks"
                Grid.Row="1"
                Width="312"
                Height="23"
                Margin="6,447,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnLinks_Click"
                Content="Manage source collection link types"
                ToolTip="Add and remove link types from the source collection." />
    </Grid>
</Window>
